main(a,u,d){for(gets(&a);~scanf("%d%d%d",&a,&u,&d);printf("%d\n",d/(a-u)));}
